how to rename a table element in laravel

39

Schema::rename($currentTableName, $newTableName);
Schema::table('users', function (Blueprint $table) {    $table->renameColumn('from', 'to');});

Comments

Submit
0 Comments